package isanfeng.tuxiaoer.pattern.structural.decorator.v1;

/**
 * @author 李红辉
 * @version 1.0
 * @date 2019/10/12 18:20
 */
public class Test {
    public static void main(String[] args) {
        BatterCake batterCake = new BatterCake();
        System.out.println(batterCake.getDesc() + batterCake.getPrice());

        BatterCakeWithEgg batterCakeWithEgg = new BatterCakeWithEgg();
        System.out.println(batterCakeWithEgg.getDesc() + batterCakeWithEgg.getPrice());

        BatterCakeWithEggSausage batterCakeWithEggSausage = new BatterCakeWithEggSausage();
        System.out.println(batterCakeWithEggSausage.getDesc() + batterCakeWithEggSausage.getPrice());
    }
}
